package com.gao.service;

import com.gao.service.impl.PaymentServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "PAYMENT-HYSTRIX-SERVICE" ,fallback = PaymentServiceImpl.class)
public interface IPaymentService {

    @GetMapping("payment/paymentInfo_OK/{id}")
    String paymentInfo_OK(@PathVariable("id") Integer id);

    @GetMapping("payment/paymentInfo_TimeOut/{id}")
    String paymentInfo_TimeOut(@PathVariable("id") Integer id);
}
